package com.example.group_20.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author: 栋
 * @data: 2023/8/8
 */
@TableName("students")
public class Students {
    @TableId(type = IdType.INPUT)
    private String s_id;

    @TableField("s_name")
    private String s_name;

    @TableField("s_password")
    private String s_password;

    @TableField("s_email")
    private String s_email;

    @TableField("s_tel")
    private String s_tel;

    @TableField("group_id")
    private int group_id;

    @TableField("leader")
    private int leader;

    public Students(String s_id, String s_name, String s_password, String s_email, String s_tel, int group_id, int leader) {
        this.s_id = s_id;
        this.s_name = s_name;
        this.s_password = s_password;
        this.s_email = s_email;
        this.s_tel = s_tel;
        this.group_id = group_id;
        this.leader = leader;
    }

    public Students() {
    }

    public String getS_id() {
        return s_id;
    }

    public void setS_id(String s_id) {
        this.s_id = s_id;
    }

    public String getS_name() {
        return s_name;
    }

    public void setS_name(String s_name) {
        this.s_name = s_name;
    }

    public String getS_password() {
        return s_password;
    }

    public void setS_password(String s_password) {
        this.s_password = s_password;
    }

    public String getS_email() {
        return s_email;
    }

    public void setS_email(String s_email) {
        this.s_email = s_email;
    }

    public String getS_tel() {
        return s_tel;
    }

    public void setS_tel(String s_tel) {
        this.s_tel = s_tel;
    }

    public int getGroup_id() {
        return group_id;
    }

    public void setGroup_id(int group_id) {
        this.group_id = group_id;
    }

    public int getLeader() {
        return leader;
    }

    public void setLeader(int leader) {
        this.leader = leader;
    }

    @Override
    public String toString() {
        return "Students{" +
                "s_id='" + s_id + '\'' +
                ", s_name='" + s_name + '\'' +
                ", s_password='" + s_password + '\'' +
                ", s_email='" + s_email + '\'' +
                ", s_tel='" + s_tel + '\'' +
                ", group_id=" + group_id +
                ", leader=" + leader +
                '}';
    }
}
